package com.atguigu.gmall.activity.service;

import com.atguigu.gmall.activity.pojo.UserRecode;
import com.atguigu.gmall.model.activity.SeckillGoods;

import java.util.List;

/**
 * 秒杀的service
 */
public interface SeckillGoodsService {
    /**
     * 秒杀商品列表
     * @param time
     * @return
     */
    public List<SeckillGoods> getSeckillGoods(String time);

    /**
     * 秒杀商品详情
     * @param time
     * @return
     */
    public SeckillGoods getSeckillGood(String time, String id);

    /**
     * 用户排队下单
     * @param time
     * @param skuId
     * @param userId
     * @return
     */
    public UserRecode addOrder(String time,String skuId,String userId);

    /**
     * 查询用户的排队信息
     * @param userId
     * @return
     */
    public UserRecode getUserRecode(String userId);
}
